package com.cw.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.alibaba.excel.annotation.ExcelProperty;

/**
 * @author ly
 * @since 2021-08-16
 */
@ApiModel(value ="检查信息表	")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("PACS55.STUDYINFO")
public class Studyinfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "检查流水号(12位为预约分诊，14位为手动分诊)")
    @ExcelProperty(value = "CHECKSERIALNUM")
    @TableField("CHECKSERIALNUM")
    private String checkserialnum;

    @ApiModelProperty(value = "主影像号")
    @ExcelProperty(value = "MAINNUM")
    @TableField("MAINNUM")
    private String mainnum;

    @ApiModelProperty(value = "报告编号")
    @ExcelProperty(value = "DIAGRPTID")
    @TableField("DIAGRPTID")
    private String diagrptid;

    @ApiModelProperty(value = "年龄")
    @ExcelProperty(value = "AGE")
    @TableField("AGE")
    private Integer age;

    @ApiModelProperty(value = "年龄单位")
    @ExcelProperty(value = "AGEUNIT")
    @TableField("AGEUNIT")
    private String ageunit;

    @ApiModelProperty(value = "图像文件数")
    @ExcelProperty(value = "FILENUM")
    @TableField("FILENUM")
    private Long filenum;

    @ApiModelProperty(value = "技师")
    @ExcelProperty(value = "PHOTOMAKER")
    @TableField("PHOTOMAKER")
    private String photomaker;

    @ApiModelProperty(value = "检查唯一号")
    @ExcelProperty(value = "DSTUDYUID")
    @TableField("DSTUDYUID")
    private String dstudyuid;

    @ApiModelProperty(value = "检查时间")
    @ExcelProperty(value = "STUDYTIME")
    @TableField("STUDYTIME")
    private LocalDateTime studytime;

    @ApiModelProperty(value = "检查部门编号")
    @ExcelProperty(value = "CHKDEPTID")
    @TableField("CHKDEPTID")
    private String chkdeptid;

    @ApiModelProperty(value = "设备类型编号")
    @ExcelProperty(value = "DEVICETYPEID")
    @TableField("DEVICETYPEID")
    private Integer devicetypeid;

    @ApiModelProperty(value = "设备编号")
    @ExcelProperty(value = "DEVICEID")
    @TableField("DEVICEID")
    private String deviceid;

    @ApiModelProperty(value = "操作员ID")
    @ExcelProperty(value = "OPERATORID")
    @TableField("OPERATORID")
    private String operatorid;

    @ApiModelProperty(value = "操作时间")
    @ExcelProperty(value = "OPERATETIME")
    @TableField("OPERATETIME")
    private LocalDateTime operatetime;

    @ApiModelProperty(value = "锁定该检查的用户的ID。（即 PacsUser表 UserID字段）")
    @ExcelProperty(value = "LOCKUSER")
    @TableField("LOCKUSER")
    private String lockuser;

    @ApiModelProperty(value = "HIS申请单号")
    @ExcelProperty(value = "DIAGID")
    @TableField("DIAGID")
    private String diagid;

    @ApiModelProperty(value = "临床诊断")
    @ExcelProperty(value = "PREDIAGNOSE")
    @TableField("PREDIAGNOSE")
    private String prediagnose;

    @ApiModelProperty(value = "病史摘要")
    @ExcelProperty(value = "ABSTRACTHISTORY")
    @TableField("ABSTRACTHISTORY")
    private String abstracthistory;

    @ApiModelProperty(value = "申请医院")
    @ExcelProperty(value = "REQHOSPITAL")
    @TableField("REQHOSPITAL")
    private String reqhospital;

    @ApiModelProperty(value = "申请科室编号")
    @ExcelProperty(value = "DEPARTMENTID")
    @TableField("DEPARTMENTID")
    private String departmentid;

    @ApiModelProperty(value = "申请医生")
    @ExcelProperty(value = "DOCTORCODE")
    @TableField("DOCTORCODE")
    private String doctorcode;

    @ApiModelProperty(value = "病房")
    @ExcelProperty(value = "SICKROOM")
    @TableField("SICKROOM")
    private String sickroom;

    @ApiModelProperty(value = "病床")
    @ExcelProperty(value = "SICKBED")
    @TableField("SICKBED")
    private String sickbed;

    @ApiModelProperty(value = "体重")
    @ExcelProperty(value = "WEIGHT")
    @TableField("WEIGHT")
    private BigDecimal weight;

    @ApiModelProperty(value = "身高")
    @ExcelProperty(value = "HEIGHT")
    @TableField("HEIGHT")
    private BigDecimal height;

    @ApiModelProperty(value = "DICOM患者名")
    @ExcelProperty(value = "DICOMPATIENTNAME")
    @TableField("DICOMPATIENTNAME")
    private String dicompatientname;

    @ApiModelProperty(value = "分诊时间")
    @ExcelProperty(value = "SEPERATETIME")
    @TableField("SEPERATETIME")
    private LocalDateTime seperatetime;

    @ApiModelProperty(value = "一线报告时间")
    @ExcelProperty(value = "PRESTARTTIME")
    @TableField("PRESTARTTIME")
    private LocalDateTime prestarttime;

    @ApiModelProperty(value = "一线报告结束时间")
    @ExcelProperty(value = "PREENDTIME")
    @TableField("PREENDTIME")
    private LocalDateTime preendtime;

    @ApiModelProperty(value = "二线报告开始时间")
    @ExcelProperty(value = "SECSTARTTIME")
    @TableField("SECSTARTTIME")
    private LocalDateTime secstarttime;

    @ApiModelProperty(value = "二线报告结束时间")
    @ExcelProperty(value = "SECENDTIME")
    @TableField("SECENDTIME")
    private LocalDateTime secendtime;

    @ApiModelProperty(value = "检查项目，检查部位的组合描述串")
    @ExcelProperty(value = "STUDYSCRIPTION")
    @TableField("STUDYSCRIPTION")
    private String studyscription;

    @ApiModelProperty(value = "是否刻录， 0:未刻录 1:已经刻录")
    @ExcelProperty(value = "BURN")
    @TableField("BURN")
    private String burn;

    @ApiModelProperty(value = "检查唯一号")
    @ExcelProperty(value = "STUDYID")
    @TableField("STUDYID")
    private String studyid;

    @ApiModelProperty(value = "用于相关检查手动关联。把A手工关联到B，则A的RelationCheckSerialNum中保存B的CheckSerialNum  ( sungengyu , 2007-11-08 )")
    @ExcelProperty(value = "RELATIONCHECKSERIALNUM")
    @TableField("RELATIONCHECKSERIALNUM")
    private String relationcheckserialnum;

    @ApiModelProperty(value = "冰冻流水号")
    @ExcelProperty(value = "FROSTSERIALNUM")
    @TableField("FROSTSERIALNUM")
    private String frostserialnum;

    @ApiModelProperty(value = "冰冻诊断")
    @ExcelProperty(value = "FROSTDIAGNOSE")
    @TableField("FROSTDIAGNOSE")
    private String frostdiagnose;

    @ApiModelProperty(value = "送检材料")
    @ExcelProperty(value = "SJCL")
    @TableField("SJCL")
    private String sjcl;

    @ApiModelProperty(value = "送检材料数量")
    @ExcelProperty(value = "SAMPLE_COUNT")
    @TableField("SAMPLE_COUNT")
    private String sampleCount;

    @ApiModelProperty(value = "采样时间，对应分诊系统 BACKUPDATE1")
    @ExcelProperty(value = "SAMPLINGTIME")
    @TableField("SAMPLINGTIME")
    private LocalDateTime samplingtime;

    @ApiModelProperty(value = "是否绝经，对应分诊系统 BACKUPFIELD4")
    @ExcelProperty(value = "ISMENOPAUSE")
    @TableField("ISMENOPAUSE")
    private String ismenopause;

    @ApiModelProperty(value = "上次月经时间，对应分诊系统BACKUPDATE2")
    @ExcelProperty(value = "LASTMENSESDATE")
    @TableField("LASTMENSESDATE")
    private LocalDateTime lastmensesdate;

    @ApiModelProperty(value = "HIS检查项目名")
    @ExcelProperty(value = "HISCHECKITEM")
    @TableField("HISCHECKITEM")
    private String hischeckitem;

    @ApiModelProperty(value = "备注（对应电子申请单的注意事项）")
    @ExcelProperty(value = "REMARK")
    @TableField("REMARK")
    private String remark;

    @ApiModelProperty(value = "是否加锁，0：正常，1：加锁")
    @ExcelProperty(value = "IFLOCK")
    @TableField("IFLOCK")
    private BigDecimal iflock;

    @ApiModelProperty(value = "是否急诊，0：平诊，1：急诊")
    @ExcelProperty(value = "IFEMERGENCY")
    @TableField("IFEMERGENCY")
    private BigDecimal ifemergency;

    @ApiModelProperty(value = "分诊状态，0：设备分诊，1：直接分诊，2：补分诊")
    @ExcelProperty(value = "SEPERATESTATUS")
    @TableField("SEPERATESTATUS")
    private BigDecimal seperatestatus;

    @ApiModelProperty(value = "检查状态见表 DICT_STUDYSTATUS")
    @ExcelProperty(value = "STUDYSTATUS")
    @TableField("STUDYSTATUS")
    private BigDecimal studystatus;

    @ApiModelProperty(value = "是否阳性，0：未确定，1：阴性，2：阳性")
    @ExcelProperty(value = "IFMASCULINE")
    @TableField("IFMASCULINE")
    private BigDecimal ifmasculine;

    @ApiModelProperty(value = "暂存状态，0：正常，1：暂存")
    @ExcelProperty(value = "TEMPSAVESTATE")
    @TableField("TEMPSAVESTATE")
    private BigDecimal tempsavestate;

    @ApiModelProperty(value = "拒签状态，0：正常，1：拒签")
    @ExcelProperty(value = "REFUSESTATE")
    @TableField("REFUSESTATE")
    private BigDecimal refusestate;

    @ApiModelProperty(value = "删除标记，0：删除，1：正常")
    @ExcelProperty(value = "ISAVAILABLE")
    @TableField("ISAVAILABLE")
    private BigDecimal isavailable;

    @ExcelProperty(value = "PUTOUTFILM")
    @TableField("PUTOUTFILM")
    private BigDecimal putoutfilm;

    @ApiModelProperty(value = "是否扫描，0：未扫描，1：扫描")
    @ExcelProperty(value = "IFSCAN")
    @TableField("IFSCAN")
    private BigDecimal ifscan;

    @ApiModelProperty(value = "是否全科会诊，0：未会诊，1：会诊")
    @ExcelProperty(value = "IFCONSULTATION")
    @TableField("IFCONSULTATION")
    private BigDecimal ifconsultation;

    @ApiModelProperty(value = "0：已分诊，1：等待预约设备，2：未交费")
    @ExcelProperty(value = "ISBESPEAK")
    @TableField("ISBESPEAK")
    private BigDecimal isbespeak;

    @ApiModelProperty(value = "诊断是否正确，0：不正确，1：正确")
    @ExcelProperty(value = "IFVALIDITY")
    @TableField("IFVALIDITY")
    private BigDecimal ifvalidity;

    @ApiModelProperty(value = "是否特殊，0：不是特殊病例，1：是特殊病例")
    @ExcelProperty(value = "IFSPECIAL")
    @TableField("IFSPECIAL")
    private BigDecimal ifspecial;

    @ApiModelProperty(value = "分诊系统备用字段2，BACKUPFIELD2")
    @ExcelProperty(value = "BACKUPFIELD2")
    @TableField("BACKUPFIELD2")
    private String backupfield2;

    @ApiModelProperty(value = "分诊系统备用字段3，BACKUPFIELD3")
    @ExcelProperty(value = "BACKUPFIELD3")
    @TableField("BACKUPFIELD3")
    private String backupfield3;

    @ApiModelProperty(value = "是否敏感检查，0：正常，1：敏感")
    @ExcelProperty(value = "STUDYTYPE")
    @TableField("STUDYTYPE")
    private BigDecimal studytype;

    @ApiModelProperty(value = "检查总费用")
    @ExcelProperty(value = "FEETOTAL")
    @TableField("FEETOTAL")
    private BigDecimal feetotal;

    @ApiModelProperty(value = "收据号")
    @ExcelProperty(value = "INVOICENO")
    @TableField("INVOICENO")
    private String invoiceno;

    @ApiModelProperty(value = "Ris主机ID，-1表示没有申请单主机关联")
    @ExcelProperty(value = "RIS_HOSTID")
    @TableField("RIS_HOSTID")
    private BigDecimal risHostid;

    @ApiModelProperty(value = "申请单图像路径")
    @ExcelProperty(value = "REQIMAGEPATH")
    @TableField("REQIMAGEPATH")
    private String reqimagepath;

    @ApiModelProperty(value = "队列号")
    @ExcelProperty(value = "QUEUENO")
    @TableField("QUEUENO")
    private BigDecimal queueno;

    @ApiModelProperty(value = "预约时间")
    @ExcelProperty(value = "BESPEAKTIME")
    @TableField("BESPEAKTIME")
    private LocalDateTime bespeaktime;

    @ApiModelProperty(value = "部门患者编号")
    @ExcelProperty(value = "DEPARTMENTPATIENTID")
    @TableField("DEPARTMENTPATIENTID")
    private String departmentpatientid;

    @ApiModelProperty(value = "检查技师ID")
    @ExcelProperty(value = "PHOTOMAKERID")
    @TableField("PHOTOMAKERID")
    private String photomakerid;

    @ApiModelProperty(value = "被导库标记")
    @ExcelProperty(value = "EXPMD5MARK")
    @TableField("EXPMD5MARK")
    private String expmd5mark;

    @ApiModelProperty(value = "患者到诊时间")
    @ExcelProperty(value = "REACHSTUDYTIME")
    @TableField("REACHSTUDYTIME")
    private LocalDateTime reachstudytime;

    @ApiModelProperty(value = "Accessnum")
    @ExcelProperty(value = "ACCESSNUM")
    @TableField("ACCESSNUM")
    private String accessnum;

    @ExcelProperty(value = "ISMEDICALRECORD")
    @TableField("ISMEDICALRECORD")
    private BigDecimal ismedicalrecord;

    @ApiModelProperty(value = "是否有HIS电子申请单")
    @ExcelProperty(value = "ISHAVEHISREQUISITION")
    @TableField("ISHAVEHISREQUISITION")
    private BigDecimal ishavehisrequisition;

    @ApiModelProperty(value = "随访检查中，保存原始检查的CheckSerialNum —— 随访检查总是依附于一个正常检查。( sungengyu , 2007_11_08)")
    @ExcelProperty(value = "ORIGINCHECKSERIALNUM")
    @TableField("ORIGINCHECKSERIALNUM")
    private String origincheckserialnum;

    @ApiModelProperty(value = "申请单文件名")
    @ExcelProperty(value = "REQIMAGEFILENAME")
    @TableField("REQIMAGEFILENAME")
    private String reqimagefilename;

    @ApiModelProperty(value = "曝光次数 ")
    @ExcelProperty(value = "EXPOSALCOUNT")
    @TableField("EXPOSALCOUNT")
    private Integer exposalcount;

    @ApiModelProperty(value = "胶片数")
    @ExcelProperty(value = "FILMCOUNT")
    @TableField("FILMCOUNT")
    private Integer filmcount;

    @ApiModelProperty(value = "胶片大小id （对应DICT_FILM_TYPE中的id）")
    @ExcelProperty(value = "FILMTYPEID")
    @TableField("FILMTYPEID")
    private Integer filmtypeid;

    @ApiModelProperty(value = "检查备注，暂时只有报告的脚本中的挂起原因使用")
    @ExcelProperty(value = "STUDYCOMMENT")
    @TableField("STUDYCOMMENT")
    private String studycomment;

    @ApiModelProperty(value = "挂起医生")
    @ExcelProperty(value = "REPORTPAUSEDOCNAME")
    @TableField("REPORTPAUSEDOCNAME")
    private String reportpausedocname;

    @ExcelProperty(value = "DEVICEFEECLASS")
    @TableField("DEVICEFEECLASS")
    private String devicefeeclass;

    @ApiModelProperty(value = "随访标志")
    @ExcelProperty(value = "ISCASETRACING")
    @TableField("ISCASETRACING")
    private String iscasetracing;

    @ExcelProperty(value = "GENERATEFILMIMAGEFLAG")
    @TableField("GENERATEFILMIMAGEFLAG")
    private BigDecimal generatefilmimageflag;

    @ApiModelProperty(value = "RIS介质编号")
    @ExcelProperty(value = "RIS_MEDIAID")
    @TableField("RIS_MEDIAID")
    private String risMediaid;

    @ApiModelProperty(value = "文件路径")
    @ExcelProperty(value = "FILEPATH")
    @TableField("FILEPATH")
    private String filepath;

    @ExcelProperty(value = "QPPIS_NO")
    @TableField("QPPIS_NO")
    private String qppisNo;

    @ApiModelProperty(value = "是否抽取过：0-未抽取，1-已抽取")
    @ExcelProperty(value = "IFQA")
    @TableField("IFQA")
    private BigDecimal ifqa;

    @ApiModelProperty(value = "1: Is Local Import")
    @ExcelProperty(value = "LOCALIMPORT")
    @TableField("LOCALIMPORT")
    private BigDecimal localimport;

    @ExcelProperty(value = "TRANSFERVISIT")
    @TableField("TRANSFERVISIT")
    private String transfervisit;

    @ExcelProperty(value = "DISCHARGEVISIT")
    @TableField("DISCHARGEVISIT")
    private String dischargevisit;

    @ExcelProperty(value = "REQUESTEDPROCEDUREID")
    @TableField("REQUESTEDPROCEDUREID")
    private String requestedprocedureid;

    @ExcelProperty(value = "IMAGESTATUS")
    @TableField("IMAGESTATUS")
    private BigDecimal imagestatus;

    @ApiModelProperty(value = "摆位技师")
    @ExcelProperty(value = "PHDOCTOR")
    @TableField("PHDOCTOR")
    private String phdoctor;

    @ApiModelProperty(value = "值机技师")
    @ExcelProperty(value = "PHTECH")
    @TableField("PHTECH")
    private String phtech;

    @ApiModelProperty(value = "护士")
    @ExcelProperty(value = "PHNUR")
    @TableField("PHNUR")
    private String phnur;

    @ApiModelProperty(value = "emr调用密文")
    @ExcelProperty(value = "AESSTRING")
    @TableField("AESSTRING")
    private String aesstring;

    @ApiModelProperty(value = "有无传染病")
    @ExcelProperty(value = "ISINFECTIOUS")
    @TableField("ISINFECTIOUS")
    private BigDecimal isinfectious;

    @ApiModelProperty(value = "传染病内容")
    @ExcelProperty(value = "INFECTIOUSDISEASES")
    @TableField("INFECTIOUSDISEASES")
    private String infectiousdiseases;

    @ApiModelProperty(value = "重建技师")
    @ExcelProperty(value = "PHREC")
    @TableField("PHREC")
    private String phrec;

    @ExcelProperty(value = "REQDOCTORPHONE")
    @TableField("REQDOCTORPHONE")
    private BigDecimal reqdoctorphone;

    @ExcelProperty(value = "STUDYCOMPLETEDTIME")
    @TableField("STUDYCOMPLETEDTIME")
    private LocalDateTime studycompletedtime;



}
